/**
 * Project observer
 */


#ifndef _SUBJECT1_H
#define _SUBJECT1_H

#include "Subject.h"
#include <list>
using std::list;

class Subject1: public Subject {
public: 
Subject1()
:_ober_list()
,_status(0)
{

}

~Subject1(){

}
/**
 * @param Observer *
 */
void attach(Observer *);
    
/**
 * @param Observer *
 */
void detach(Observer *);
    
void notify();
    
int getStatus();
    
/**
 * @param status
 */
void setStatus(int status);
private:
    list<Observer *> _ober_list;
    int _status;
};
#endif //_SUBJECT1_H
